package com.link2room.ironhide.entity;


import com.link2room.common.entity.BaseEntity;
import org.hibernate.annotations.DynamicInsert;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import java.util.Date;

/**
 * Created by sss on 2016/8/11.
 */
@Entity
@DynamicInsert
public class Demo extends BaseEntity {
    public enum Demo_{
        num,rateId
    }
    private Integer num;
    private String rateId;
    private Date rsvDate;

    @Basic
    @Column(name = "num", nullable = true)
    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    @Basic
    @Column(name = "rate_id", nullable = false, length = 40)
    public String getRateId() {
        return rateId;
    }

    public void setRateId(String rateId) {
        this.rateId = rateId;
    }

    @Basic
    @Column(name = "rsv_date", nullable = true)
    public Date getRsvDate() {
        return rsvDate;
    }

    public void setRsvDate(Date rsvDate) {
        this.rsvDate = rsvDate;
    }
}
